<template>
  <div class="swiperWrap">	 
    <swiper :options="swiperOption">
    <!-- slides -->
    <swiper-slide v-for="item of list" :key="item.id">
      <img :src="item.imgUrl">
    </swiper-slide>   
    <!-- Optional controls -->
    <div class="swiper-pagination"  slot="pagination"></div>
     </swiper>
  </div>

</template>

<script>
export default {
  name: 'HomeSwiper',
  data() {
      return {
        swiperOption: {
         pagination: {
            el: '.swiper-pagination'
          },
          loop:true
          // some swiper options/callbacks
          // 所有的参数同 swiper 官方 api 参数
          // ...
        },
        list : [
          {
            id : '01',
            imgUrl : 'https://cdn-remote.517ybang.com/bannernew1.jpg'
          },
          {
            id : '02',
            imgUrl : 'https://www.517ybang.com//newhome/top/2t.png'
          }


        ]
      }
    }
}
</script>

<style lang="stylus" scoped>
.swiperWrap >>> .swiper-pagination-bullet-active
    background:#fff
.swiperWrap
  img
    width:100%
    height:4.4rem
    display:block

</style>
